package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.AnnouncementDao;
import com.platform.entity.AnnouncementEntity;
import com.platform.service.AnnouncementService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-06-11 11:42:15
 */
@Service("announcementService")
public class AnnouncementServiceImpl implements AnnouncementService {
    @Autowired
    private AnnouncementDao announcementDao;

    @Override
    public AnnouncementEntity queryObject(Integer id) {
        return announcementDao.queryObject(id);
    }

    @Override
    public List<AnnouncementEntity> queryList(Map<String, Object> map) {
        return announcementDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return announcementDao.queryTotal(map);
    }

    @Override
    public int save(AnnouncementEntity announcement) {
        return announcementDao.save(announcement);
    }

    @Override
    public int update(AnnouncementEntity announcement) {
        return announcementDao.update(announcement);
    }

    @Override
    public int delete(Integer id) {
        return announcementDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return announcementDao.deleteBatch(ids);
    }
}
